import httpInstance from "@/utils/http"

export const insertCartAPI = ({ skuId, count }) => {
    return httpInstance({
        url: '/member/cart',
        method: 'POST',
        data: {
            skuId,
            count
        }

    })
}

export const findNewCartAPI = () => {
    return httpInstance({
        url: '/member/cart',
        method: 'GET',
    })
}

export const delCartAPI = (ids)=>{
    return httpInstance({
        url:'/member/cart',
        method:'DELETE',
        data:{
            ids
        }
    })
}

export const mergeCartAPI = (data)=>{
    return httpInstance({
        url:'/member/cart/merge',
        method:'POST',
        data
    })
}